package com.parse.ip.parseip.customer;

import com.parse.ip.parseip.config.ActiveMQConfig;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * 消费者2
 */
@Component
public class Customer_2 {
    @JmsListener(destination = ActiveMQConfig.TOPIC,containerFactory = "jmsListenerContainerTopic")
    public void topic2(String message){
        System.out.println("topic2接收到得消息"+message);
    }
}
